import { reqAddressInfo } from "@/api"
const state = {
    addressInfo: []
}
const mutations = {
    ADDRESSINFO(state, addressInfo) {
        state.addressInfo = addressInfo
    }
}
const actions = {
    async addressInfo({ commit }) {
        let result = await reqAddressInfo()
        if (result.code == 200) {
            commit('ADDRESSINFO', result.data)
        }
    }
}
const getters = {

}
export default {
    state,
    mutations,
    actions,
    getters
}